﻿//-----------------------------------------------------------------------------------------
// <copyright file="BlipiService.Search.cs" company="Jakub Florczyk (www.jakubflorczyk.pl)">
//      Copyright © 2009 Jakub Florczyk (www.jakubflorczyk.pl)
//      http://blipinet.codeplex.com/
// </copyright>
//-----------------------------------------------------------------------------------------

namespace BlipiNET
{
    using System;
    using System.Globalization;

    /// <summary>
    /// Blipi serwis.
    /// </summary>
    public partial class BlipiService
    {
        /// <summary>
        /// Wyszukiwarka wiadomości.
        /// </summary>
        /// <param name="query">Fraza wyszukiwarki.</param>
        /// <returns>Tablica wiadomości.</returns>
        public Message[] Search(string query)
        {
            return RequestGetMany<Message>(String.Format(CultureInfo.InvariantCulture, "/{0}/search/{1}", this.key, query));
        }
    }
}
